package com.example.service.impl;

import com.example.entity.ReaderMessage;
import com.example.exception.LibraryManagerException;
import com.example.mapper.ReaderMessageMapper;
import com.example.service.ReaderMessageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author 紫煦桉
 */
@Service
public class ReaderMessageServiceImpl extends AbstractSuperServiceImpl<ReaderMessage> implements ReaderMessageService {
    private ReaderMessageMapper readerMessageMapper;
    @Autowired
    public void setReaderMessageMapper(ReaderMessageMapper readerMessageMapper) {
        this.readerMessageMapper = readerMessageMapper;
    }
    @Override
    public ReaderMessage login(ReaderMessage readerMessage) throws LibraryManagerException {
        return readerMessageMapper.login(readerMessage);
    }
}
